package entity;

import java.math.BigDecimal;

public class Commodity {
    private Integer cid;

    private Integer wid;

    private String cname;

    private String type;

    private Integer minimum;

    private Integer quantity;

    private BigDecimal purchasingPrice;

    private BigDecimal salesPrice;

    private String size;

    private Integer suid;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getWid() {
        return wid;
    }

    public void setWid(Integer wid) {
        this.wid = wid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Integer getMinimum() {
        return minimum;
    }

    public void setMinimum(Integer minimum) {
        this.minimum = minimum;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quentity) {
        this.quantity = quentity;
    }

    public BigDecimal getPurchasingPrice() {
        return purchasingPrice;
    }

    public void setPurchasingPrice(BigDecimal purchasingPrice) {
        this.purchasingPrice = purchasingPrice;
    }

    public BigDecimal getSalesPrice() {
        return salesPrice;
    }

    public void setSalesPrice(BigDecimal salesPrice) {
        this.salesPrice = salesPrice;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size == null ? null : size.trim();
    }

    public Integer getSuid() {
        return suid;
    }

    public void setSuid(Integer suid) {
        this.suid = suid;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "cid=" + cid +
                ", wid=" + wid +
                ", cname='" + cname + '\'' +
                ", type='" + type + '\'' +
                ", minimum=" + minimum +
                ", quantity=" + quantity +
                ", purchasingPrice=" + purchasingPrice +
                ", salesPrice=" + salesPrice +
                ", size='" + size + '\'' +
                ", suid=" + suid +
                '}';
    }
}